import java.util.Scanner;

public class Sort {
    public static void print(int n){
        if(n<= 9){
            System.out.print(n%10+" ");
            return;
        }
         /*  n = n / 10;
            n =n%10;*/
        print(n/10);
        System.out.print(n % 10+" ");
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数: ");
        int n= sc.nextInt();
         print(n);
       // System.out.println(ret);
    }
}
